package ${classPath};
<#assign instance="${domain?substring(0,1)?lower_case}${domain?substring(1)}"/>

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 

/**
 * ${classComment} Service业务层处理
 * 
 * @author hu
 * @date 2023-10-10
 */
@Service
public class ${domain}ServiceImpl extends ServiceImpl<${domain}Mapper, ${domain}> implements ${domain}Service 
{
    @Autowired
    private ${domain}Mapper ${instance}Mapper;
 
 /**
   * 
  <#list maxParamConsFieldList as field>
 * @param ${field.name} ${field.comment}
  </#list> 
   */
  @Override
  public ${domain} create(//
  <#list maxParamConsFieldList as field>
  ${field.type} ${field.name}<#if field_has_next>,</#if>//${field.comment}
  </#list>
  ) {
      
    ${domain} ${domain?uncap_first } = new ${domain}(//
    <#list maxParamConsFieldList as field>
        ${field.name}<#if field_has_next>,</#if>//${field.comment}
    </#list>
    );
    
    this.save(${domain?uncap_first });
    return ${domain?uncap_first };
  }
}
